<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"   
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:p="http://primefaces.org/ui">
     
     <h:form prependId="false">
		<p:panel id="formLogin" header="#{msg['form.login.formLogin.title']}">
			<p:messages />
			<h:panelGrid columns="2">
				<h:outputLabel for="usuario" value="#{msg['form.login.usuario']}: "/>
				<p:inputText id="usuario" required="true" label="#{msg['form.login.usuario']}" value="#{loginBean.usuario.login}">
					<f:validateLength maximum="100"/>
				</p:inputText>
				
				<h:outputLabel for="password" value="#{msg['form.login.password']}: "/>
				<p:password id="password" required="true" label="#{msg['form.login.password']}" value="#{loginBean.usuario.password}" feedback="false">
					<f:validateLength minimum="8" />
				</p:password>
			</h:panelGrid>
			<br/>
			<p:commandButton value="#{msg['form.boton.ingresar']}" ajax="false" action="#{loginBean.autenticarUsuario}"/>
		</p:panel>
     </h:form>
</ui:composition>